This resource address returns information on a specific host. The host can be identified either by id or name.
Request Headers | |
---|---|
Accept | The expected MIME type of the response. If the
format parameter is present, it takes precedence over the Accept header. |
For all views except edit
, upon success, MarkLogic Server returns
status code 200 (OK), and the response body contains the requested data. If
view=edit
, MarkLogic Server responds with status code 302 (Found) and the
Location header contains a redirect to the appropriate page in the Admin Interface.
manage-user
role, or the following
privilege: http://marklogic.com/xdmp/privileges/manage
When view=counts
, the count information includes the document count, directory
count, active fragment count, deleted fragment count, and nascent fragment count.
The structure of the data in the response for the default view is as follows:
id
name
meta
This is a complex structure with the following children:
uri
current-time
elapsed-time
start-min
view-error
This is a complex structure with the following children:
error-type
error-name
error-code
error-message
relations
This is a complex structure with the following children:
relation-group
This is a complex structure with the following children:
uriref
typeref
roleref
relation-count
relation
This is a complex structure with the following children:
qualifiers
This is a complex structure with the following children:
qualifier
This is a complex structure with the following children:
uriref
typeref
idref
nameref
uriref
typeref
roleref
idref
nameref
related-views
This is a complex structure with the following children:
related-view
This is a complex structure with the following children:
view-type
view-name
view-uri
http://localhost:8002/manage/v2/hosts/myhost ==> Returns information on the 'myhost' host.
http://localhost:8002/manage/v2/hosts/myhost?format=json ==> Returns information on the 'myhost' host, as JSON.
http://localhost:8002/manage/v2/hosts/myhost?view=edit ==> Returns a redirect to the Admin Interface configuration page for the 'myhost' host.